import request from '@/utils/request'

// 查询推广分佣列表
export function listShareConfig(query) {
  return request({
    url: '/shareConfig/shareConfig/list',
    method: 'get',
    params: query
  })
}

// 查询推广分佣详细
export function getShareConfig(id) {
  return request({
    url: '/shareConfig/shareConfig/' + id,
    method: 'get'
  })
}

// 新增推广分佣
export function addShareConfig(data) {
  return request({
    url: '/shareConfig/shareConfig',
    method: 'post',
    data: data
  })
}

// 修改推广分佣
export function updateShareConfig(data) {
  return request({
    url: '/shareConfig/shareConfig',
    method: 'put',
    data: data
  })
}

// 删除推广分佣
export function delShareConfig(id) {
  return request({
    url: '/shareConfig/shareConfig/' + id,
    method: 'delete'
  })
}
